package com.yuufa.test.reg;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegMain {

    public static void main(String[] args) {

        String str = "xxxA1234567890,1124461654,p34123456,C098765432,";
        
        Pattern pattern = Pattern.compile("[a-zA-Z]{1}[0-9]{9}");
        Matcher matcher = pattern.matcher(str);
        
        while( matcher.find() ) {
            System.out.println( matcher.group() );
        }
    }

}
